Posts Tagged:

styled components

10th

Mar

2022

A Simple way to keep Styled Components Clean

If you're using styled-components and like me you're a fan of keeping the css blocks clean and concise, you may want to add in some helpers to grab parts of your theme you'll use over and over again. Things like colours, spacing, zIndexes or even props that you want to use. Here's a small example of a theme file: ```typescript // theme.ts const …

styled components

css in js

lodash

partial application

clean code